package com.ruoyi.web.controller.mall.mallShopUser.service.impl;

import com.ruoyi.web.controller.mall.mallShopUser.domain.MallShopUser;
import com.ruoyi.web.controller.mall.mallShopUser.mapper.MallShopUserMapper;
import com.ruoyi.web.controller.mall.mallShopUser.service.IMallShopUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商家入驻信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
@Service
public class MallShopUserServiceImpl implements IMallShopUserService 
{
    @Autowired
    private MallShopUserMapper mallShopUserMapper;

    /**
     * 查询商家入驻信息
     * 
     * @param id 商家入驻信息ID
     * @return 商家入驻信息
     */
    @Override
    public MallShopUser selectMallShopUserById(String id)
    {
        return mallShopUserMapper.selectMallShopUserById(id);
    }

    /**
     * 查询商家入驻信息列表
     * 
     * @param mallShopUser 商家入驻信息
     * @return 商家入驻信息
     */
    @Override
    public List<MallShopUser> selectMallShopUserList(MallShopUser mallShopUser)
    {
        return mallShopUserMapper.selectMallShopUserList(mallShopUser);
    }

    /**
     * 新增商家入驻信息
     * 
     * @param mallShopUser 商家入驻信息
     * @return 结果
     */
    @Override
    public int insertMallShopUser(MallShopUser mallShopUser)
    {
        return mallShopUserMapper.insertMallShopUser(mallShopUser);
    }

    /**
     * 修改商家入驻信息
     * 
     * @param mallShopUser 商家入驻信息
     * @return 结果
     */
    @Override
    public int updateMallShopUser(MallShopUser mallShopUser)
    {
        return mallShopUserMapper.updateMallShopUser(mallShopUser);
    }

    /**
     * 删除商家入驻信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteMallShopUserByIds(String[] ids)
    {
        return mallShopUserMapper.deleteMallShopUserByIds(ids);
    }

    /**
     * 删除商家入驻信息信息
     * 
     * @param id 商家入驻信息ID
     * @return 结果
     */
    @Override
    public int deleteMallShopUserById(String id)
    {
        return mallShopUserMapper.deleteMallShopUserById(id);
    }
}
